package com.internetCafes.spms.web.sys.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 返回结果通用类，用于之后接口
 *
 * @author Zj
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuNavVO {

    @ApiModelProperty(value = "菜单id")
    private Long menuId;

    @ApiModelProperty(value = "父菜单ID，一级菜单为0")
    private Long parentId;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单URL")
    private String url;

    @ApiModelProperty(value = "授权(多个用逗号分隔，如：user:list,user:create)")
    private String perms;

    @ApiModelProperty(value = "类型   0：目录   1：菜单   2：按钮")
    private Integer type;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    @ApiModelProperty(value = "子菜单列表")
    private List<MenuNavVO> list = new ArrayList<>();

    @ApiModelProperty(value = "父菜单名称")
    private String parentName;

    @ApiModelProperty(value = "是否默认展开菜单")
    private boolean open;

    @ApiModelProperty(value = "权限标签列表 save增 list列表 info查看 delete删除 update编辑")
    private List<String> permsTags = new ArrayList<>();

}
